package javabase.desginpattern.structure.adapter.objectadapter;

import javabase.desginpattern.structure.adapter.classadapter.Adaptee;
import javabase.desginpattern.structure.adapter.classadapter.Target;

/**
 * @author fance
 * @date 18-4-26 下午4:38
 */
public class ObjectAdapter implements Target {
    private Adaptee adaptee;
    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        this.adaptee.specificRequest();
    }
}
